package com.wanqing.community.dao;

import java.util.List;

import com.wanqing.community.bean.UserDetailBean;
import com.wanqing.community.util.ConditionParse;

/**
 * 用户明细DAO
 * @author JX
 *
 */
public interface UserDetailDao {

	/**
	 * <p>Description:添加 用户明细<p>
	 * @author JX
	 * @version 2015-06-23
	 * @modifier JX
	 * @modifiDate 2015-06-23
	 * <p>modifiContent:</p>
	 * @param userDetail
	 * @return 
	 */
	int addUserDetail(UserDetailBean userDetail);
	
	/**
	  * <p>Description:根据主表ID查找用户明细<p>
	  * @author JX
	  * @version 2015-06-23
	  * @modifier JX
	  * @modifiDate 2015-06-23
	  * <p>modifiContent:<p>
	  * @param pcId
	  * @return
	  */
	List<UserDetailBean> findUserDetailById(String Id);
	
	/**
	 * 修改用户明细
	 * <p>Description:<p>
	 * @author JX
	 * @version 2015-06-23
	 * @modifier JX
	 * @modifiDate 2015-06-23
	 * <p>modifiContent:<p>
	 * @param userDetail
	 * @return
	 */
	int updateUserDetail(UserDetailBean userDetail);
	
	/**
	 * <p>Description:得到用户明细数量<p>
	 * @author JX
 	 * @version 2015-06-23
 	 * @modifier JX
 	 * @modifiDate 2015-06-23
	 * <p>modifiContent:<p>
	 * @param condParse
	 * @return
	 */
	int getUserDetailCount(ConditionParse condParse);

	/**
	 * 根据ID删除明细
	 * <p>Description:<p>
	 * @author JX
	 * @version 2015-06-23
	 * @modifier JX
	 * @modifiDate 2015-06-23
	 * <p>modifiContent:<p>
	 * @param udId
	 * @return
	 */
	int deleteUserDetailbyId(String udId);
	
}
